//
// Created by Administrator on 2023-9-14
// 纯用位运算实现整数加法
//

#include <iostream>

using namespace std;

int main()
{
    int a = 46, b = 20, aa;
    while(b)
    {
        aa=a^b;
        b=(a&b)<<1;
        a=aa;
    }
    cout<<a;
    return 0;

}
